- getID
HTTPCodec.StreamID getID()
Undocumented in source. Be warned that the author may not have intended to support it.
- getLocalAddress
Address getLocalAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPeerAddress
Address getPeerAddress()
Undocumented in source. Be warned that the author may not have intended to support it.
- getSequenceNumber
uint getSequenceNumber()
Undocumented in source. Be warned that the author may not have intended to support it.
- isDownstream
bool isDownstream()
Undocumented in source. Be warned that the author may not have intended to support it.
- isUpstream
bool isUpstream()
Undocumented in source. Be warned that the author may not have intended to support it.
- onDelayedDestroy
void onDelayedDestroy()
Undocumented in source. Be warned that the author may not have intended to support it.
- onErro
void onErro(HTTPErrorCode erro)
Undocumented in source. Be warned that the author may not have intended to support it.
- onIngressBody
void onIngressBody(ubyte[] chain, ushort padding)
Invoked by the session when some or all of the ingress entity-body has
been parsed.
- onIngressChunkComplete
void onIngressChunkComplete()
Invoked by the session when the CRLF terminating a chunk has been parsed.
- onIngressChunkHeader
void onIngressChunkHeader(size_t length)
Invoked by the session when a chunk header has been parsed.
- onIngressEOM
void onIngressEOM()
Invoked by the session when the ingress message is complete.
- onIngressHeadersComplete
void onIngressHeadersComplete(HTTPMessage msg)
Invoked by the session when the ingress headers are complete
- onUpgtade
bool onUpgtade(CodecProtocol protocol, HTTPMessage msg)
Undocumented in source. Be warned that the author may not have intended to support it.
- onWsFrame
void onWsFrame(WSFrame wsf)
Undocumented in source. Be warned that the author may not have intended to support it.
- refreshTimeout
void refreshTimeout()
Schedule or refresh the timeout for this transaction
- sendBody
void sendBody(ubyte[] body_, bool iseom)
Send part or all of the egress message body to the Transport. If flow
control is enabled, the chunk boundaries may not be respected.
This method does not actually write the message out on the wire
immediately. All writes happen at the end of the event loop at the
earliest.
Note: This method may be called zero or more times per message.
- sendChunkHeader
void sendChunkHeader(size_t length)
Write any protocol framing required for the subsequent call(s)
to sendBody(). This method does not actually write the message out on
the wire immediately. All writes happen at the end of the event loop
at the earliest.
@param length Length in bytes of the body data to follow.
- sendChunkTerminator
void sendChunkTerminator()
Write any protocol syntax needed to terminate the data. This method
does not actually write the message out on the wire immediately. All
writes happen at the end of the event loop at the earliest.
Frame begun by the last call to sendChunkHeader().
- sendEOM
void sendEOM()
Finalize the egress message; depending on the protocol used
by the Transport, this may involve sending an explicit "end
of message" indicator. This method does not actually write the
message out on the wire immediately. All writes happen at the end
of the event loop at the earliest.
- sendHeaders
void sendHeaders(HTTPMessage headers)
Send the egress message headers to the Transport. This method does
not actually write the message out on the wire immediately. All
writes happen at the end of the event loop at the earliest.
Note: This method should be called once per message unless the first
headers sent indicate a 1xx status.
- sendHeadersWithEOM
void sendHeadersWithEOM(HTTPMessage headers)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendHeadersWithOptionalEOM
void sendHeadersWithOptionalEOM(HTTPMessage headers, bool eom)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendTimeOut
void sendTimeOut()
Undocumented in source. Be warned that the author may not have intended to support it.
- sendWsData
void sendWsData(OpCode code, ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
- socketWrite
void socketWrite(StreamWriteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
- timeoutExpired
void timeoutExpired()
Timeout callback for this transaction. The timer is active while
until the ingress message is complete or terminated by error.